home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / Stopwatch2.3 / Source / ViewMgr.h < prev    next >
Text File  |  1995-06-12  |  916b  |  44 lines

  1. /*
  2.  * For legal stuff see the file COPYRIGHT
  3.  */
  4. #import <appkit/appkit.h>
  5. #import <objc/List.h>
  6.  
  7. @class ClientInspector;
  8.  
  9. @interface ViewMgr : Object
  10. {
  11.   List    *deletedItems;
  12.   id    view;    
  13. }
  14.  
  15. - (void)setView:(View *)obj;
  16. - getDeletedItem;
  17. - saveDeletedItem:item;
  18. - (void)forgetDeletions;
  19.  
  20. /* Used to enable/disable the inspector's buttons */
  21. - (BOOL)canAdd;
  22. - (BOOL)canModify;
  23. - (BOOL)canDelete;
  24. - (BOOL)canUndelete;
  25.  
  26. /*
  27.  * These methods return YES if they modified the data structure
  28.  * (thus requiring a save to be performed) or NO if not.
  29.  */
  30. - (BOOL)mgrAdd:(ClientInspector *)inspector;
  31. - (BOOL)mgrDelete:(ClientInspector *)inspector;
  32. - (BOOL)mgrUndelete:(ClientInspector *)inspector;
  33. - (BOOL)mgrModify:(ClientInspector *)inspector;
  34. - (BOOL)mgrDoubleClick:(ClientInspector *)inspector;
  35.  
  36. /*
  37.  * This method returns YES if there are unsaved edits
  38.  */
  39. - (BOOL)isEditing;
  40.  
  41. - mgrShow:(ClientInspector *)inspector;
  42.  
  43. @end
  44.